#pragma once

#include <QObject>
#include <QStyledItemDelegate>
#include<QPainter>
class MyTreeDelegate : public QStyledItemDelegate
{
	Q_OBJECT
public:
	explicit MyTreeDelegate(QObject *parent = nullptr);

	void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;

	QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
signals:

public slots:
};